package com.clg.common.tools;

import com.clg.common.constants.Constants;
import com.jfinal.core.JFinal;

import javax.servlet.http.HttpServletRequest;

/**
 * Created by usercai on 2016/9/29.
 */
public class MessageTools {
    public static void setError(String error){
        HttpServletRequest request = RequestKit.get();
        if(request!=null) {
            request.setAttribute(Constants.BUSSINESS_ERR_KEY, error);
        }
    }
}
